export const STATE_TEXT = {
  1: "未处理",
  2: "已参与",
  3: "已拒绝"
};
export const STATE_TEXT_COLOR = {
  1: "#FFB72F",
  2: "#4AB759",
  3: "#F05357"
};

export const INVITEE_STATE = {
  // 状态: 0:待同意, 1:已同意, 2: 已拒绝 3：已拒绝(时间到期,未同意，系统自动拒绝)
  0: "待同意",
  1: "已同意",
  2: "已拒绝",
  3: "已拒绝(时间到期,未同意，系统自动拒绝)"
};

export const INVITEE_STATE_TEXT_COLOR = {
  0: "#FFB72F",
  1: "#4AB759",
  2: "#F05357",
  3: "#F05357"
};

export const filterMoney = money => {
  return Number(money) / 100;
};
export const filterDiscount = discount => {
  return Number(discount) / 10;
};

export const INVITED_MERCHANT_TYPE = 1;
export const THIS_MERCHANT_TYPE = 2;

export const FINANCINGPARTY_STATE_TEXT = {
  [INVITED_MERCHANT_TYPE]: "邀请商户",
  [THIS_MERCHANT_TYPE]: "本商户"
};
